<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>无标题文档</title>
        <script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
        <script language="javascript" type="text/javascript" src="{res file=js/common.js}"></script>
        <script language="JavaScript" type="text/javascript" src="{res file=js/lan.js}"></script>
        <link href="template/style/css/style.css" type="text/css" rel="stylesheet" />
        <style>
            label.error {color:red;}
            a.btn-s-5{padding:4px 2px 0 15px;}
        </style>
    </head>
    <body>
        <div class="sub-body">
            <div id="head">
            <a href="javascript:;" onclick="$('#search').slideToggle();">收起/展开</a>
            <div  id="search">
                <h3 class="title-1 tab-frame">已确认订单</h3>
                <script>
                    <!--{if $search}-->
                    $(function(){
                        var get_para={$get_para};
                        $.each(get_para,function(k,v){
                            if($('#'+k)){
                                $('#'+k).attr('value', v);
                            }
                        })
                    });
                    <!--{/if}-->
                    </script>
                <div class="tab-frame-s">
                <form action="index.php" method="get">
                    <table cellspacing="0" cellpadding="0" class="tab-frame" >
                    <tr>
                        <td width="10%" align="right">订 单 号：</td>
                        <td width="16%"><input type="text" id="style_sn" name="order_sn" class="input-1" /></td>
                        <td width="10%" align="right">款&nbsp;&nbsp;&nbsp;&nbsp;号：</td>
                        <td width="15%"><input type="text" id="style_sn" name="style_sn" class="input-1" /></td>
                        <td width="12%" align="right">订单状态：</td>
                        <td width="15%"><select name="status" id="status">
                                        <option value="-1">全部</option>
                                    <!--{foreach from=$lang.order_status item=os key=k}-->
                                        <option value="{$k}">{$os}</option>
                                        <!--{/foreach}-->
                                    </select></td>
                        <td width="22%" rowspan="3">
                            <input type="hidden" value="index" name="act"/>
                            <input type="hidden" value="chuhuo" name="app" />
                            <input  name="search" type="submit" class="btn-2" value="查询"/></td>
                    </tr>
                    <tr>
                        <td width="10%" align="right">品&nbsp;&nbsp;&nbsp;&nbsp;牌：</td>
                        <td width="16%">
                            <select name="brand_id" id="brand_id" onChange="brand_change(this.value);">
                                <option value="0">{$lang.select_pls}</option>
                                <!--{foreach from=$brand_list item=brand key=k}-->
                                <option value="{$brand.brand_id}">{$brand.brand_name}</option>
                                <!--{/foreach}-->
                            </select>
                        </td>
                        <td width="10%" align="right">买&nbsp;&nbsp;&nbsp;&nbsp;手：</td>
                        <td width="15%"><select name="buyer_id" id="buyer_id" <!--{if $role !=USER_MERCHANDISER}-->onnChange="buyer_change(this.value);"<!--{/if}-->>
                                <option value="0">{$lang.select_pls}</option>
                                <!--{foreach from=$buyer_list item=buyer}-->
                                <option value="{$buyer.user_id}">{$buyer.user_name}</option>
                                <!--{/foreach}-->
                            </select></td>
                        <td width="12%" align="right">跟&nbsp;&nbsp;&nbsp;&nbsp;单：</td>
                        <td width="15%"><select name="merchandiser_id" id="merchandiser_id">
                                <option value="0">{$lang.select_pls}</option>
                                <!--{foreach from=$merchandiser_list item=merchandiser}-->
                                <option value="{$merchandiser.user_id}">{$merchandiser.user_name}</option>
                                <!--{/foreach}-->
                            </select></td>
                    </tr>
                    <tr>
                        <td width="10%" align="right">工&nbsp;&nbsp;&nbsp;&nbsp;厂：</td>
                        <td><select name="factory_id" id="factory_id">
                                <option value="0">{$lang.select_pls}</option>
                                <!--{foreach from=$factory_list item=factory}-->
                                <option value="{$factory.factory_id}">{$factory.factory_name}</option>
                                <!--{/foreach}-->
                            </select></td>
                        <td align="right">到&nbsp;&nbsp;&nbsp;&nbsp;货：</td><td><select name="task" id="task">
                                <option value="0">请选择</option>
                                <option value="7days">本周到货</option>
                                </select></td>
                        <td>&nbsp;</td><td>&nbsp;</td>
                    </tr>
                </table>
                    </form>
                </div>
                <script>
                    <!--{if $role==USER_MERCHANDISER}-->
                       //$('#brand_id').attr('disabled','disabled');
                       //$('#buyer_id').attr('disabled','disabled');
                       $('#merchandiser_id option:first-child').remove();
                       $('#merchandiser_id').val('{$user.user_id}');
                       $('#merchandiser_id').attr('readonly','readonly');
                    <!--{/if}-->
                </script>
            </div>
            </div>
            <div class="tab-frame">
                <div class="tab-title-1"><span>已确认订单</span></div>
                <form action="index.php?app=chuhuo&act=update" method="post">
                    <table width="100%" cellspacing="0" cellpadding="0" align="left" class="tab-add" id="tab-color1">
                        <tr>
                            <th></th><th>订单号</th><th>创建时间</th>
                            <th>品牌</th>
                        <th>买手</th>
                        <th>跟单</th>
                        <th>款号</th>
                        <th>图片</th>
                        <th>款式</th>
                        <th>出厂日期</th><th>到货日期</th>
                            <th>操作</th>
                        </tr>
                        <!--{foreach from=$order_list item=list}-->
                        <tr>
                            <td><input name="id[]" value="{$list.order_id}" type="checkbox" <!--{if $order.send_date>0}--> disabled="disabled"<!--{/if}-->/></td>
                            <td>{$list.order_sn}</td>
                            <td>{$list.order_create_date|date}</td>
                            <td>{$list.brand_name}</td>
                            <td>{$list.buyer_name}</td>
                        <td>{$list.merchandiser}</td>
                        <td>{$list.style_sn}</td>
                        <td><a href="{$site_url}/{$list.front_pic}" target="_blank"><img src="{$list.front_pic}" width="60" alt="图片"/></a></td>
                        <td>{$list.style_name}</td>
                            <td>{$list.release_date|date}</td>
                            <td>{$list.buyer_arrival_date|date}</td>
                            <td><a href="index.php?app=order&act=edit&id={$list.order_id}" target="_blank" class="btn-s-5" >详细信息</a><br />
                                <a href="index.php?app=order&act=order_status&id={$list.order_id}" target="_blank" class="btn-s-5" >状态信息</a> </td>
                        </tr>
                        <!--{/foreach}-->
                        <tr>
                            <td></td> <td colspan="11">
                                <input type="submit" value="确认出货" class="btn-1" name="submit" /></td> <td></td>
                        </tr>
                    </table>
                 </form>
                <div class="page">
                  {include file=page.html}</div>
            </div>
        </div>
        <script language="JavaScript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
    </body>
</html>